package com.donfelix.looknews.view.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.NestedScrollView;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.FrameLayout;

import com.donfelix.looknews.R;
import com.donfelix.looknews.common.BaseFragment;
import com.donfelix.looknews.widget.ElasticDragDismissFrameLayout;
import com.donfelix.looknews.widget.ParallaxScrimageView;
import com.donfelix.looknews.widget.TranslateYTextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * Created by Don on 2017/3/30.
 * Desc
 */

public class ZhihuDailyDetailFragment extends BaseFragment {

    @BindView(R.id.shot)
    ParallaxScrimageView shot;
    @BindView(R.id.title)
    TranslateYTextView title;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.wv_zhihu)
    WebView wvZhihu;
    @BindView(R.id.nest)
    NestedScrollView nest;
    @BindView(R.id.container)
    FrameLayout container;
    @BindView(R.id.draggable_frame)
    ElasticDragDismissFrameLayout draggableFrame;
    Unbinder unbinder;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_zhihu_daily_detail, container, false);
        unbinder = ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
